{% extends "base.html" %}
{% load staticfiles %}

{% block title %}
	图灵课程 - 注册
{% endblock %}

{% block style %}
    <style type="text/css">
        .pre-scrollable{
            max-height: 340px;
            overflow-y: scroll;
        }
        .error_msg{
            color:red;
        }
    </style>
{% endblock %}

{% block content %}
<!--test log in-->
<div class="container" role="main" style="width: 350px; height:600px;padding: 10px">
<div style="color: inherit; padding: 15px" align="center" >
    <form action="/Accounts/register/" method="POST" autocomplete="off">
        <h2 class="form-signin-heading" style="padding-bottom: 10px">REGIST</h2>
        <table>
            
        <div>
        <div  class="reg_mess">
        <span class="glyphicon glyphicon-user"></span>*用户名:</div>
            <div class="reg_mess_input">
            {{ obj1.user }}
            <span id="user_remind" style="display:none;" class="error_msg1"></span>
            </div>
       
            {%  if obj1.errors.user %}
                <div id="user_error" class="error_msg">{{ obj1.errors.user.0 }}</div>
            {% endif %}
        </div>    
        
        <div  class="reg_mess" >
        <span class="glyphicon glyphicon-lock"></span>*密码:</div>
            <div class="reg_mess_input">
            {{ obj1.pwd }}
            <div id="pwd_remind" class="error_msg1" style="display:none;"></div>
            </div>
            {%  if obj1.errors.pwd %}
                <div id="pwd_error" class="error_msg">{{ obj1.errors.pwd.0 }}</div>
            {% endif %}
        </div>
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-lock"></span>*确认密码:</div>
            <div class="reg_mess_input">
            {{ obj1.pwd2 }}
            <div id="pwd2_remind" class="error_msg1" style="display:none;"></div>
            </div>
            {%  if obj1.errors.pwd2 %}
                <div id="pwd2_error" class="error_msg">{{ obj1.errors.pwd2.0 }}</div>
            {% endif %}
        </div>
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-heart-empty"></span>*昵称:</div>
            <div class="reg_mess_input">
            {{ obj1.nickname }}
            <div id="nickname_remind" class="error_msg1" style="display:none;"></div>
            </div>
            {%  if obj1.errors.nickname %}
                <div id="nickname_error" class="error_msg">{{ obj1.errors.nickname.0 }}</div>
            {% endif %}
        </div>
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-envelope"></span>*邮箱:</div>
        <div class="reg_mess_input">
            {{ obj1.email }}
            <div id="email_remind" class="error_msg1" style="display:none;"></div>
            </div>
            {%  if obj1.errors.email %}
                <div id="email_error" class="error_msg">{{ obj1.errors.email.0 }}</div>
            {% endif %}
        </div>
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-comment"></span> QQ:</div>
             <div class="reg_mess_input">
            {{ obj1.qq }}
            </div>
            {%  if obj1.errors.qq %}
                <div class="error_msg">{{ obj1.errors.qq.0 }}</div>
            {% endif %}
        </div>
        <div  class="reg_mess" >
        <span class="glyphicon glyphicon-phone"></span> 手机号码:</div>
            <div class="reg_mess_input">
            {{ obj1.phone }}
            </div>
            {%  if obj1.errors.phone %}
                <div class="error_msg">{{ obj1.errors.phone.0 }}</div>
            {% endif %}
        </div>
        <div>
            {%  if obj1.non_field_errors %}
                {% for item in obj1.non_field_errors %}
                    <div class="error_msg">{{ item }}</div>
                {% endfor %}
            {% endif %}
        </div>

    
            <div style="margin-padding: 20px">
                <tr>
                    <td>
                        <p style="width=15px">&nbsp;</p>
                    </td>
                    <td>
                        <input class="btn btn-sm btn-primary btn-block" type="submit" style="background-color: #b07675; border:none;font-size: 14px;" name="提交">
                    </td>
                </tr>
            </div>
        </table>  
    </form>
</div>
</div>




{% endblock %}

{% block other_script %}

<script type="text/javascript" src="/static/js/account.js"></script>

{% endblock %}